package com.hu.biz.handle.exception;

import com.alibaba.fastjson.JSON;

import java.util.List;

/**
 * @Author: 63198
 * @Date: 2019/5/17 2:14 PM
 * @Version 1.0
 */
public class ValidationException extends RuntimeException {
    List<String> errors;

    public List<String> getErrors() {
        return errors;
    }

    public ValidationException(List<String> errors) {
        super(JSON.toJSONString(errors));
        this.errors = errors;
    }
}
